package com.peter.proxy.hkgolden.dao;

//public class ReplyDao extends GenericDao<Reply> {
//	
//	public List<Reply> getReplyList(int id) {
//		final Query query = persistenceManager.newQuery("SELECT FROM "+Reply.class.getName() + " WHERE cacheDate > cacheDateParam && id == idParam");
//		query.declareParameters("java.util.Date cacheDateParam, java.lang.Long idParam");
//		final Date now = DateUtils.addMinutes(new Date(), -ApplicationContext.cacheMinutes);
//		final List<Reply> replyList = (List<Reply>) (query).execute(now, (long)id);
//		if (replyList.size() == 0) {
//			return null;
//		}
//		return replyList;
//	}
//
// }
